package com.corx.network.core.network;


import com.corx.network.core.exception.NetworkException;
import com.corx.network.core.model.SendMessage;
import com.corx.network.core.type.NetworkTypeEnum;

/**
 * @author gx
 * @version 1.0.0
 */
public interface Network {

    String getKey();

    NetworkTypeEnum getType();

    void connect() throws NetworkException;

    void disconnect();

    boolean isConnected();

    void destroy();

    void sendMessage(SendMessage message) throws NetworkException;


}
